package com.songlanyun.modules.config.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 分润配置
 *
 * @author lijiahe
 * @email
 * @date 2022-09-21 14:58:22
 */
@Data
@TableName("yxt_profit_sharing")
public class ProfitSharingEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Integer id;
    /**
     * 直推分润
     */
    private BigDecimal pushStraight;
    /**
     * 间推分润
     */
    private BigDecimal pushBetween;
    /**
     * 团长分润
     */
    private BigDecimal headOfGroup;
    /**
     * 间推团长分润
     */
    private BigDecimal interimHead;
    /**
     * 线上订单属地分润
     */
    private BigDecimal territorial;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 消费者直推奖励
     */
    private BigDecimal consumerDirectPushReward;

    /**
     * 商家直推奖励
     */
    private BigDecimal shopDirectPushReward;

    /**
     * 消费者团长奖励
     */
    private BigDecimal consumerRegimentReward;

    /**
     * 商家团长奖励
     */
    private BigDecimal shopRegimentReward;

    /**
     * 消费者间推团长奖励
     */
    private BigDecimal consumerInterpositionRegimentReward;

    /**
     * 商家间推团长奖励
     */
    private BigDecimal shopInterpositionRegimentReward;

    /**
     * 消费者属地分润奖励
     */
    private BigDecimal consumerTerritorialReward;

    /**
     * 商家属地分润奖励
     */
    private BigDecimal shopTerritorialReward;

    /**
     * 线下订单消费者贡献值
     */
    private BigDecimal offlineOrderConsumerContribute;

    /**
     * 线下订单商家贡献值
     */
    private BigDecimal offlineOrderShopContribute;

    // 福利区订单分润配置
    /**
     *  福利区-直推分润
     */
    private BigDecimal welfarePushStraight;

    /**
     *  福利区-团长分润
     */
    private BigDecimal welfareHeadOfGroup;

    /**
     *  福利区-间推团长分润
     */
    private BigDecimal welfareInterimHead;

    /**
     *  福利区-线上订单属地分润
     */
    private BigDecimal welfareTerritorial;
}
